package com.visizen.wisdomclass.server.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WcAndroidUpdateExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WcAndroidUpdateExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIDIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIDIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIDEqualTo(Long value) {
            addCriterion("ID =", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDNotEqualTo(Long value) {
            addCriterion("ID <>", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDGreaterThan(Long value) {
            addCriterion("ID >", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDGreaterThanOrEqualTo(Long value) {
            addCriterion("ID >=", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDLessThan(Long value) {
            addCriterion("ID <", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDLessThanOrEqualTo(Long value) {
            addCriterion("ID <=", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDIn(List<Long> values) {
            addCriterion("ID in", values, "ID");
            return (Criteria) this;
        }

        public Criteria andIDNotIn(List<Long> values) {
            addCriterion("ID not in", values, "ID");
            return (Criteria) this;
        }

        public Criteria andIDBetween(Long value1, Long value2) {
            addCriterion("ID between", value1, value2, "ID");
            return (Criteria) this;
        }

        public Criteria andIDNotBetween(Long value1, Long value2) {
            addCriterion("ID not between", value1, value2, "ID");
            return (Criteria) this;
        }

        public Criteria andVER_CODEIsNull() {
            addCriterion("VER_CODE is null");
            return (Criteria) this;
        }

        public Criteria andVER_CODEIsNotNull() {
            addCriterion("VER_CODE is not null");
            return (Criteria) this;
        }

        public Criteria andVER_CODEEqualTo(String value) {
            addCriterion("VER_CODE =", value, "VER_CODE");
            return (Criteria) this;
        }

        public Criteria andVER_CODENotEqualTo(String value) {
            addCriterion("VER_CODE <>", value, "VER_CODE");
            return (Criteria) this;
        }

        public Criteria andVER_CODEGreaterThan(String value) {
            addCriterion("VER_CODE >", value, "VER_CODE");
            return (Criteria) this;
        }

        public Criteria andVER_CODEGreaterThanOrEqualTo(String value) {
            addCriterion("VER_CODE >=", value, "VER_CODE");
            return (Criteria) this;
        }

        public Criteria andVER_CODELessThan(String value) {
            addCriterion("VER_CODE <", value, "VER_CODE");
            return (Criteria) this;
        }

        public Criteria andVER_CODELessThanOrEqualTo(String value) {
            addCriterion("VER_CODE <=", value, "VER_CODE");
            return (Criteria) this;
        }

        public Criteria andVER_CODELike(String value) {
            addCriterion("VER_CODE like", value, "VER_CODE");
            return (Criteria) this;
        }

        public Criteria andVER_CODENotLike(String value) {
            addCriterion("VER_CODE not like", value, "VER_CODE");
            return (Criteria) this;
        }

        public Criteria andVER_CODEIn(List<String> values) {
            addCriterion("VER_CODE in", values, "VER_CODE");
            return (Criteria) this;
        }

        public Criteria andVER_CODENotIn(List<String> values) {
            addCriterion("VER_CODE not in", values, "VER_CODE");
            return (Criteria) this;
        }

        public Criteria andVER_CODEBetween(String value1, String value2) {
            addCriterion("VER_CODE between", value1, value2, "VER_CODE");
            return (Criteria) this;
        }

        public Criteria andVER_CODENotBetween(String value1, String value2) {
            addCriterion("VER_CODE not between", value1, value2, "VER_CODE");
            return (Criteria) this;
        }

        public Criteria andVERSIONIsNull() {
            addCriterion("VERSION is null");
            return (Criteria) this;
        }

        public Criteria andVERSIONIsNotNull() {
            addCriterion("VERSION is not null");
            return (Criteria) this;
        }

        public Criteria andVERSIONEqualTo(String value) {
            addCriterion("VERSION =", value, "VERSION");
            return (Criteria) this;
        }

        public Criteria andVERSIONNotEqualTo(String value) {
            addCriterion("VERSION <>", value, "VERSION");
            return (Criteria) this;
        }

        public Criteria andVERSIONGreaterThan(String value) {
            addCriterion("VERSION >", value, "VERSION");
            return (Criteria) this;
        }

        public Criteria andVERSIONGreaterThanOrEqualTo(String value) {
            addCriterion("VERSION >=", value, "VERSION");
            return (Criteria) this;
        }

        public Criteria andVERSIONLessThan(String value) {
            addCriterion("VERSION <", value, "VERSION");
            return (Criteria) this;
        }

        public Criteria andVERSIONLessThanOrEqualTo(String value) {
            addCriterion("VERSION <=", value, "VERSION");
            return (Criteria) this;
        }

        public Criteria andVERSIONLike(String value) {
            addCriterion("VERSION like", value, "VERSION");
            return (Criteria) this;
        }

        public Criteria andVERSIONNotLike(String value) {
            addCriterion("VERSION not like", value, "VERSION");
            return (Criteria) this;
        }

        public Criteria andVERSIONIn(List<String> values) {
            addCriterion("VERSION in", values, "VERSION");
            return (Criteria) this;
        }

        public Criteria andVERSIONNotIn(List<String> values) {
            addCriterion("VERSION not in", values, "VERSION");
            return (Criteria) this;
        }

        public Criteria andVERSIONBetween(String value1, String value2) {
            addCriterion("VERSION between", value1, value2, "VERSION");
            return (Criteria) this;
        }

        public Criteria andVERSIONNotBetween(String value1, String value2) {
            addCriterion("VERSION not between", value1, value2, "VERSION");
            return (Criteria) this;
        }

        public Criteria andVER_TIMEIsNull() {
            addCriterion("VER_TIME is null");
            return (Criteria) this;
        }

        public Criteria andVER_TIMEIsNotNull() {
            addCriterion("VER_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andVER_TIMEEqualTo(Date value) {
            addCriterion("VER_TIME =", value, "VER_TIME");
            return (Criteria) this;
        }

        public Criteria andVER_TIMENotEqualTo(Date value) {
            addCriterion("VER_TIME <>", value, "VER_TIME");
            return (Criteria) this;
        }

        public Criteria andVER_TIMEGreaterThan(Date value) {
            addCriterion("VER_TIME >", value, "VER_TIME");
            return (Criteria) this;
        }

        public Criteria andVER_TIMEGreaterThanOrEqualTo(Date value) {
            addCriterion("VER_TIME >=", value, "VER_TIME");
            return (Criteria) this;
        }

        public Criteria andVER_TIMELessThan(Date value) {
            addCriterion("VER_TIME <", value, "VER_TIME");
            return (Criteria) this;
        }

        public Criteria andVER_TIMELessThanOrEqualTo(Date value) {
            addCriterion("VER_TIME <=", value, "VER_TIME");
            return (Criteria) this;
        }

        public Criteria andVER_TIMEIn(List<Date> values) {
            addCriterion("VER_TIME in", values, "VER_TIME");
            return (Criteria) this;
        }

        public Criteria andVER_TIMENotIn(List<Date> values) {
            addCriterion("VER_TIME not in", values, "VER_TIME");
            return (Criteria) this;
        }

        public Criteria andVER_TIMEBetween(Date value1, Date value2) {
            addCriterion("VER_TIME between", value1, value2, "VER_TIME");
            return (Criteria) this;
        }

        public Criteria andVER_TIMENotBetween(Date value1, Date value2) {
            addCriterion("VER_TIME not between", value1, value2, "VER_TIME");
            return (Criteria) this;
        }

        public Criteria andCONTANTIsNull() {
            addCriterion("CONTANT is null");
            return (Criteria) this;
        }

        public Criteria andCONTANTIsNotNull() {
            addCriterion("CONTANT is not null");
            return (Criteria) this;
        }

        public Criteria andCONTANTEqualTo(String value) {
            addCriterion("CONTANT =", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTNotEqualTo(String value) {
            addCriterion("CONTANT <>", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTGreaterThan(String value) {
            addCriterion("CONTANT >", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTGreaterThanOrEqualTo(String value) {
            addCriterion("CONTANT >=", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTLessThan(String value) {
            addCriterion("CONTANT <", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTLessThanOrEqualTo(String value) {
            addCriterion("CONTANT <=", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTLike(String value) {
            addCriterion("CONTANT like", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTNotLike(String value) {
            addCriterion("CONTANT not like", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTIn(List<String> values) {
            addCriterion("CONTANT in", values, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTNotIn(List<String> values) {
            addCriterion("CONTANT not in", values, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTBetween(String value1, String value2) {
            addCriterion("CONTANT between", value1, value2, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTNotBetween(String value1, String value2) {
            addCriterion("CONTANT not between", value1, value2, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andApkURLIsNull() {
            addCriterion("ApkURL is null");
            return (Criteria) this;
        }

        public Criteria andApkURLIsNotNull() {
            addCriterion("ApkURL is not null");
            return (Criteria) this;
        }

        public Criteria andApkURLEqualTo(String value) {
            addCriterion("ApkURL =", value, "apkURL");
            return (Criteria) this;
        }

        public Criteria andApkURLNotEqualTo(String value) {
            addCriterion("ApkURL <>", value, "apkURL");
            return (Criteria) this;
        }

        public Criteria andApkURLGreaterThan(String value) {
            addCriterion("ApkURL >", value, "apkURL");
            return (Criteria) this;
        }

        public Criteria andApkURLGreaterThanOrEqualTo(String value) {
            addCriterion("ApkURL >=", value, "apkURL");
            return (Criteria) this;
        }

        public Criteria andApkURLLessThan(String value) {
            addCriterion("ApkURL <", value, "apkURL");
            return (Criteria) this;
        }

        public Criteria andApkURLLessThanOrEqualTo(String value) {
            addCriterion("ApkURL <=", value, "apkURL");
            return (Criteria) this;
        }

        public Criteria andApkURLLike(String value) {
            addCriterion("ApkURL like", value, "apkURL");
            return (Criteria) this;
        }

        public Criteria andApkURLNotLike(String value) {
            addCriterion("ApkURL not like", value, "apkURL");
            return (Criteria) this;
        }

        public Criteria andApkURLIn(List<String> values) {
            addCriterion("ApkURL in", values, "apkURL");
            return (Criteria) this;
        }

        public Criteria andApkURLNotIn(List<String> values) {
            addCriterion("ApkURL not in", values, "apkURL");
            return (Criteria) this;
        }

        public Criteria andApkURLBetween(String value1, String value2) {
            addCriterion("ApkURL between", value1, value2, "apkURL");
            return (Criteria) this;
        }

        public Criteria andApkURLNotBetween(String value1, String value2) {
            addCriterion("ApkURL not between", value1, value2, "apkURL");
            return (Criteria) this;
        }

        public Criteria andFORCESIsNull() {
            addCriterion("FORCES is null");
            return (Criteria) this;
        }

        public Criteria andFORCESIsNotNull() {
            addCriterion("FORCES is not null");
            return (Criteria) this;
        }

        public Criteria andFORCESEqualTo(Integer value) {
            addCriterion("FORCES =", value, "FORCES");
            return (Criteria) this;
        }

        public Criteria andFORCESNotEqualTo(Integer value) {
            addCriterion("FORCES <>", value, "FORCES");
            return (Criteria) this;
        }

        public Criteria andFORCESGreaterThan(Integer value) {
            addCriterion("FORCES >", value, "FORCES");
            return (Criteria) this;
        }

        public Criteria andFORCESGreaterThanOrEqualTo(Integer value) {
            addCriterion("FORCES >=", value, "FORCES");
            return (Criteria) this;
        }

        public Criteria andFORCESLessThan(Integer value) {
            addCriterion("FORCES <", value, "FORCES");
            return (Criteria) this;
        }

        public Criteria andFORCESLessThanOrEqualTo(Integer value) {
            addCriterion("FORCES <=", value, "FORCES");
            return (Criteria) this;
        }

        public Criteria andFORCESIn(List<Integer> values) {
            addCriterion("FORCES in", values, "FORCES");
            return (Criteria) this;
        }

        public Criteria andFORCESNotIn(List<Integer> values) {
            addCriterion("FORCES not in", values, "FORCES");
            return (Criteria) this;
        }

        public Criteria andFORCESBetween(Integer value1, Integer value2) {
            addCriterion("FORCES between", value1, value2, "FORCES");
            return (Criteria) this;
        }

        public Criteria andFORCESNotBetween(Integer value1, Integer value2) {
            addCriterion("FORCES not between", value1, value2, "FORCES");
            return (Criteria) this;
        }

        public Criteria andTIMESIsNull() {
            addCriterion("TIMES is null");
            return (Criteria) this;
        }

        public Criteria andTIMESIsNotNull() {
            addCriterion("TIMES is not null");
            return (Criteria) this;
        }

        public Criteria andTIMESEqualTo(Date value) {
            addCriterion("TIMES =", value, "TIMES");
            return (Criteria) this;
        }

        public Criteria andTIMESNotEqualTo(Date value) {
            addCriterion("TIMES <>", value, "TIMES");
            return (Criteria) this;
        }

        public Criteria andTIMESGreaterThan(Date value) {
            addCriterion("TIMES >", value, "TIMES");
            return (Criteria) this;
        }

        public Criteria andTIMESGreaterThanOrEqualTo(Date value) {
            addCriterion("TIMES >=", value, "TIMES");
            return (Criteria) this;
        }

        public Criteria andTIMESLessThan(Date value) {
            addCriterion("TIMES <", value, "TIMES");
            return (Criteria) this;
        }

        public Criteria andTIMESLessThanOrEqualTo(Date value) {
            addCriterion("TIMES <=", value, "TIMES");
            return (Criteria) this;
        }

        public Criteria andTIMESIn(List<Date> values) {
            addCriterion("TIMES in", values, "TIMES");
            return (Criteria) this;
        }

        public Criteria andTIMESNotIn(List<Date> values) {
            addCriterion("TIMES not in", values, "TIMES");
            return (Criteria) this;
        }

        public Criteria andTIMESBetween(Date value1, Date value2) {
            addCriterion("TIMES between", value1, value2, "TIMES");
            return (Criteria) this;
        }

        public Criteria andTIMESNotBetween(Date value1, Date value2) {
            addCriterion("TIMES not between", value1, value2, "TIMES");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}